package com.mew.common.rest.feedback;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Date 2019/8/21 0021
 **/
@Data
@ToString
@NoArgsConstructor
public class FeedbackRequestMessage extends ZebraBaseMessage<FeedbackRequestMessage> {
    private Byte type;//类型
    private String msg;//消息

    @Override
    public void write(ByteBuf byteBuf) {
    }

    @Override
    public FeedbackRequestMessage read(ByteBuf b) {
        FeedbackRequestMessage message = new FeedbackRequestMessage();
        message.type = readByte(b);
        message.msg = readString(b);
        return message;
    }
}
